package lamer;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JPanel;

public class LikelihoodFrame extends JPanel {

	
	public Likelihood likelihood = new Likelihood();
	
	public LikelihoodFrame() {
		
		JButton btnStart = new JButton("Initialize");
		btnStart.addActionListener(new ActionListener() {
			
			public void actionPerformed(ActionEvent arg0) {
				likelihood.Initialize();
				likelihood.Realize();
			}
		});

		JButton btnLikelihood = new JButton("LikelihoodStep");
		btnLikelihood.addActionListener(new ActionListener() {
			
			public void actionPerformed(ActionEvent arg0) {
				for (int i=0;i<20;i++)
					likelihood.Step();
			}
		});

		
		setLayout(new GridLayout(10,1));
		add(btnStart);
		add(btnLikelihood);

		
		
	}
	
	
}
